package com.dit.action.employee;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import com.dit.action.AbstractAction;
import com.dit.entity.Employee;
import com.dit.service.EmployeeService;

public class ViewEmployeeDetailsAction extends AbstractAction{
	
	private String id;
	
	private Employee employee;
	
	@Autowired
	@Qualifier("employeeService")
	private EmployeeService employeeService;
	
	
	public String viewEmployeeDetails(){
		//System.out.println(id);
		employee=employeeService.getEmployeeDetails(id);
		//System.out.println(employee.getName());
		return SUCCESS;
		
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	
	
}
